<?xml version="1.0" encoding="UTF-8"?>
<project name="module_FTPUpload-agent" default="compile.module.FTPUpload-agent">
  <dirname property="module.FTPUpload-agent.basedir" file="${ant.file.module_FTPUpload-agent}"/>
  
  <property name="module.jdk.home.FTPUpload-agent" value="${jdk.home.1.6_(1)}"/>
  <property name="module.jdk.bin.FTPUpload-agent" value="${jdk.bin.1.6_(1)}"/>
  <property name="module.jdk.classpath.FTPUpload-agent" value="jdk.classpath.1.6_(1)"/>
  
  <property name="compiler.args.FTPUpload-agent" value="${compiler.args}"/>
  
  <property name="FTPUpload-agent.output.dir" value="${module.FTPUpload-agent.basedir}/../out/production/FTPUpload-agent"/>
  <property name="FTPUpload-agent.testoutput.dir" value="${module.FTPUpload-agent.basedir}/../out/test/FTPUpload-agent"/>
  
  <path id="FTPUpload-agent.module.bootclasspath">
    <!-- Paths to be included in compilation bootclasspath -->
  </path>
  
  <path id="FTPUpload-agent.module.production.classpath">
    <path refid="${module.jdk.classpath.FTPUpload-agent}"/>
    <pathelement location="${FTPUpload-common.output.dir}"/>
    <pathelement location="X:/TeamCity/devPackage/server-api.jar"/>
    <pathelement location="X:/TeamCity/devPackage/common-api.jar"/>
    <pathelement location="X:/TeamCity/devPackage/agent-api.jar"/>
    <path refid="library.teamcity_open_api_agent.classpath"/>
    <path refid="library.teamcity_open_api_common.classpath"/>
    <path refid="library.teamcity_third-party_common.classpath"/>
  </path>
  
  <path id="FTPUpload-agent.runtime.production.module.classpath">
    <pathelement location="${FTPUpload-agent.output.dir}"/>
    <path refid="FTPUpload-common.runtime.production.module.classpath"/>
    <path refid="library.teamcity_open_api_agent.classpath"/>
    <path refid="library.teamcity_open_api_common.classpath"/>
    <path refid="library.teamcity_third-party_common.classpath"/>
  </path>
  
  <path id="FTPUpload-agent.module.classpath">
    <path refid="${module.jdk.classpath.FTPUpload-agent}"/>
    <pathelement location="${FTPUpload-agent.output.dir}"/>
    <pathelement location="${FTPUpload-common.testoutput.dir}"/>
    <pathelement location="${FTPUpload-common.output.dir}"/>
    <pathelement location="X:/TeamCity/devPackage/server-api.jar"/>
    <pathelement location="X:/TeamCity/devPackage/common-api.jar"/>
    <pathelement location="X:/TeamCity/devPackage/agent-api.jar"/>
    <path refid="library.teamcity_open_api_agent.classpath"/>
    <path refid="library.teamcity_open_api_common.classpath"/>
    <path refid="library.teamcity_third-party_common.classpath"/>
  </path>
  
  <path id="FTPUpload-agent.runtime.module.classpath">
    <pathelement location="${FTPUpload-agent.testoutput.dir}"/>
    <pathelement location="${FTPUpload-agent.output.dir}"/>
    <path refid="FTPUpload-common.runtime.module.classpath"/>
    <path refid="library.teamcity_open_api_agent.classpath"/>
    <path refid="library.teamcity_open_api_common.classpath"/>
    <path refid="library.teamcity_third-party_common.classpath"/>
  </path>
  
  
  <patternset id="excluded.from.module.FTPUpload-agent">
    <patternset refid="ignored.files"/>
  </patternset>
  
  <patternset id="excluded.from.compilation.FTPUpload-agent">
    <patternset refid="excluded.from.module.FTPUpload-agent"/>
  </patternset>
  
  <path id="FTPUpload-agent.module.sourcepath">
    <dirset dir="${module.FTPUpload-agent.basedir}">
      <include name="src"/>
    </dirset>
  </path>
  
  
  <target name="compile.module.FTPUpload-agent" depends="compile.module.FTPUpload-agent.production,compile.module.FTPUpload-agent.tests" description="Compile module FTPUpload-agent"/>
  
  <target name="compile.module.FTPUpload-agent.production" depends="register.custom.compilers,compile.module.FTPUpload-common" description="Compile module FTPUpload-agent; production classes">
    <mkdir dir="${FTPUpload-agent.output.dir}"/>
    <javac2 destdir="${FTPUpload-agent.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.FTPUpload-agent}/javac">
      <compilerarg line="${compiler.args.FTPUpload-agent}"/>
      <bootclasspath refid="FTPUpload-agent.module.bootclasspath"/>
      <classpath refid="FTPUpload-agent.module.production.classpath"/>
      <src refid="FTPUpload-agent.module.sourcepath"/>
      <patternset refid="excluded.from.compilation.FTPUpload-agent"/>
    </javac2>
    
    <copy todir="${FTPUpload-agent.output.dir}">
      <fileset dir="${module.FTPUpload-agent.basedir}/src">
        <patternset refid="compiler.resources"/>
        <type type="file"/>
      </fileset>
    </copy>
  </target>
  
  <target name="compile.module.FTPUpload-agent.tests" depends="register.custom.compilers,compile.module.FTPUpload-agent.production" description="compile module FTPUpload-agent; test classes" unless="skip.tests"/>
  
  <target name="clean.module.FTPUpload-agent" description="cleanup module">
    <delete dir="${FTPUpload-agent.output.dir}"/>
    <delete dir="${FTPUpload-agent.testoutput.dir}"/>
  </target>
</project>